WooCommerce\PayPalCommerce\Button\Assets\SmartButton D

Total Complexity 228
Dependencies 31
Dependents 1
Total lines 1,479
Lines of code 877
Logical lines of code 348
Comment lines 389
Methods 41
Properties 21

Methods 41

Method Rating Maintainability Complexity Lines of code
url_params()
D
33 32 84
render_wrapper()
B
35 17 94
render_button_wrapper_registrar()
B
39 17 71
script_data()
B
28
11 159
message_values()
B
44 17 38
should_load_buttons()
A
53 12 22
render_message_wrapper_registrar()
A
46 10 43
paypal_subscription_id()
A
53 9 22
style_for_context()
A
51 8 25
dcc_is_enabled()
S
57 6 19
intent()
S
62 7 10
is_button_disabled()
S
54 5 25
components()
S
58 5 17
can_render_dcc()
S
69 6 6
can_save_vault_token()
S
66 5 9
enqueue()
S
52 3 30
should_load_ppcp_script()
S
63 5 10
get_vaulted_paypal_email()
S
60 4 13
has_subscriptions()
S
63 4 12
paypal_subscriptions_enabled()
S
62 4 11
dcc_renderer()
S
58 3 16
message_renderer()
S
64 4 10
product_supports_payment()
S
61 3 12
normalize_height()
S
68 3 9
get_3ds_contingency()
S
67 3 9
has_in_stock_variation()
S
68 3 8
payerData()
S
68 3 7
__construct()
S
53 1 22
get_payment_tokens()
S
71 2 6
is_cart_price_total_zero()
S
78 2 3
bn_code_for_context()
S
74 2 4
button_renderer()
S
68 2 7
get_order_pay_id()
S
68 2 7
single_product_renderer_hook()
S
79 1 3
mini_cart_button_renderer_hook()
S
72 1 6
proceed_to_checkout_button_renderer_hook()
S
72 1 6
pay_order_renderer_hook()
S
79 1 3
checkout_dcc_button_renderer_hook()
S
79 1 3
checkout_button_renderer_hook()
S
79 1 3
bn_codes()
S
68 1 8
attributes()
S
74 1 5